import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';

//列表数据
export const columns: BasicColumn[] = [
   {
    title: '机型',
    align:"center",
    dataIndex: 'model'
   },
   {
    title: '编号	',
    align:"center",
    dataIndex: 'sn'
   },
   {
    title: '主题内容',
    align:"center",
    dataIndex: 'theme'
   },
   {
    title: '内容',
    align:"center",
    dataIndex: 'ontent'
   },
   {
    title: '更改原因',
    align:"center",
    dataIndex: 'reason'
   },
   {
    title: '在库件处理',
    align:"center",
    dataIndex: 'inStockGoods'
   },
   {
    title: '编制',
    align:"center",
    dataIndex: 'cmpilation'
   },
   {
    title: '校对',
    align:"center",
    dataIndex: 'proofreading'
   },
   {
    title: '审核',
    align:"center",
    dataIndex: 'review'
   },
   {
    title: '批准',
    align:"center",
    dataIndex: 'approval'
   },
   {
    title: '发放单位',
    align:"center",
    dataIndex: 'issuingUnit'
   },
   {
    title: '备注',
    align:"center",
    dataIndex: 'remarks'
   },
   {
    title: '生效时间',
    align:"center",
    dataIndex: 'effectiveTime'
   },
   {
    title: '文件图片',
    align:"center",
    dataIndex: 'img'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '机型',
    field: 'model',
    component: 'Input',
  },
  {
    label: '编号	',
    field: 'sn',
    component: 'Input',
  },
  {
    label: '主题内容',
    field: 'theme',
    component: 'Input',
  },
  {
    label: '内容',
    field: 'ontent',
    component: 'Input',
  },
  {
    label: '更改原因',
    field: 'reason',
    component: 'Input',
  },
  {
    label: '在库件处理',
    field: 'inStockGoods',
    component: 'Input',
  },
  {
    label: '编制',
    field: 'cmpilation',
    component: 'Input',
  },
  {
    label: '校对',
    field: 'proofreading',
    component: 'Input',
  },
  {
    label: '审核',
    field: 'review',
    component: 'Input',
  },
  {
    label: '批准',
    field: 'approval',
    component: 'Input',
  },
  {
    label: '发放单位',
    field: 'issuingUnit',
    component: 'Input',
  },
  {
    label: '备注',
    field: 'remarks',
    component: 'Input',
  },
  {
    label: '生效时间',
    field: 'effectiveTime',
    component: 'Input',
  },
  {
    label: '文件图片',
    field: 'img',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];

// 高级查询数据
export const superQuerySchema = {
  model: {title: '机型',order: 0,view: 'text', type: 'string',},
  sn: {title: '编号	',order: 1,view: 'text', type: 'string',},
  theme: {title: '主题内容',order: 2,view: 'text', type: 'string',},
  ontent: {title: '内容',order: 3,view: 'text', type: 'string',},
  reason: {title: '更改原因',order: 4,view: 'text', type: 'string',},
  inStockGoods: {title: '在库件处理',order: 5,view: 'text', type: 'string',},
  cmpilation: {title: '编制',order: 6,view: 'text', type: 'string',},
  proofreading: {title: '校对',order: 7,view: 'text', type: 'string',},
  review: {title: '审核',order: 8,view: 'text', type: 'string',},
  approval: {title: '批准',order: 9,view: 'text', type: 'string',},
  issuingUnit: {title: '发放单位',order: 10,view: 'text', type: 'string',},
  remarks: {title: '备注',order: 11,view: 'text', type: 'string',},
  effectiveTime: {title: '生效时间',order: 12,view: 'text', type: 'string',},
  img: {title: '文件图片',order: 13,view: 'text', type: 'string',},
};

/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
  return formSchema;
}
